package com.handpay.zztong.hp.login.model.register;

import android.os.Parcel;
import android.os.Parcelable;

import com.handpay.zztong.hp.bean.ResponseBean;

/**
 * @author sxshi on 2017/2/21.
 * 用户注册返回数据模型
 */

public class UserRegisterBean extends ResponseBean{

    /**
     * userID : D93D5DA4F99CF5AB02949CEDB38CB889
     * responseCode : 0
     * account : 1872A7FEB157E59A
     * phone : 328879EFB26A8FDE4E7E8F0C4FAFACD0
     * sessionID : 19886615|64C95C0F90414BC581154F678EDE7FD2
     * status : 01
     * merchantCode : FASTBILL@ssx001
     */

    private String userID;
    private String responseCode;
    private String account;
    private String phone;
    private String sessionID;
    private String status;
    private String merchantCode;

    public String getUserID() {
        return userID;
    }

    public void setUserID(String userID) {
        this.userID = userID;
    }

    public String getResponseCode() {
        return responseCode;
    }

    public void setResponseCode(String responseCode) {
        this.responseCode = responseCode;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getSessionID() {
        return sessionID;
    }

    public void setSessionID(String sessionID) {
        this.sessionID = sessionID;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getMerchantCode() {
        return merchantCode;
    }

    public void setMerchantCode(String merchantCode) {
        this.merchantCode = merchantCode;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.userID);
        dest.writeString(this.responseCode);
        dest.writeString(this.account);
        dest.writeString(this.phone);
        dest.writeString(this.sessionID);
        dest.writeString(this.status);
        dest.writeString(this.merchantCode);
    }

    public UserRegisterBean() {
    }

    protected UserRegisterBean(Parcel in) {
        this.userID = in.readString();
        this.responseCode = in.readString();
        this.account = in.readString();
        this.phone = in.readString();
        this.sessionID = in.readString();
        this.status = in.readString();
        this.merchantCode = in.readString();
    }

    public static final Parcelable.Creator<UserRegisterBean> CREATOR = new Parcelable.Creator<UserRegisterBean>() {
        @Override
        public UserRegisterBean createFromParcel(Parcel source) {
            return new UserRegisterBean(source);
        }

        @Override
        public UserRegisterBean[] newArray(int size) {
            return new UserRegisterBean[size];
        }
    };

    @Override
    public String toString() {
        return "UserRegisterBean{" +
                "userID='" + userID + '\'' +
                ", responseCode='" + responseCode + '\'' +
                ", account='" + account + '\'' +
                ", phone='" + phone + '\'' +
                ", sessionID='" + sessionID + '\'' +
                ", status='" + status + '\'' +
                ", merchantCode='" + merchantCode + '\'' +
                '}';
    }
}
